<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>巡检报告</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.min.js"></script>
<script type="text/javascript">
var attchMark = "attach";//标示名
var form;
$(function(){
	var index = 0;//标示生成上传后文件 的模块数
	var inspectionReportId = $("#inspectionReportId").val();
	var imgWidth = 100;//默认图片宽度给100
	calculationUpFileWidth();//计算 上传文件涉及的宽度
	form = $("#inspectionReprtForm").Validform({
		ignoreHidden:true,
		postonce:true,
		showAllError : true,
		ajaxPost:true,
		tiptype:3,
		callback:function(data){
			if(data.success){
				window.top.$("#maintabs").tabs({
					onBeforeClose : function(title,index){
						if(title == '填写巡检报告'){
							try {
								window.top.$("#maintabs").tabs('select','巡检任务');
								window.top.tip(data.msg);
								if(top.myTabWin.reloadTable()){
									top.myTabWin.reloadTable();
								}
							} catch (e) {
							} finally{
								return true;
							}
						}
					}
				});
				window.top.$("#maintabs").tabs('close','填写巡检报告');
			}else{
				tip(data.msg);
			}
		},
		beforeSubmit:function(){
			unbindBtns();
		}
	});
	$("#uploadFile01").uploadify({
		buttonText : '上传文件',
		auto : true,
		progressData : 'speed',
		multi : true,
		height : 20,
		width : 60,
		overrideEvents : ['onDialogClose'],
		fileTypeDesc : '文件格式:',
		queueID : 'instructionfile',
		fileTypeExts : '*.jpg;*.jpeg;*.png;*.gif;*.bpm;',
		fileSizeLimit : '15MB',
		swf : 'plug-in/uploadify/uploadify.swf',	
		uploader : 'fileUploadController.do?uploadFile&businessKey='+inspectionReportId,
		onUploadSuccess : function(file,data) {
			var fileBean = $.parseJSON(data).attributes;
			var attachSpanId = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>';//存放内容容器ID
			if(checkFileName(attachSpanId,fileBean)){
				appendFileImageHtml("noAttachTip_01", attachSpanId, fileBean);
			}
		},onFallback : function(){
			tip("您未安装FLASH控件，无法上传文件！请安装FLASH控件后再试");
		},onSelectError : function(file, errorCode, errorMsg){
			switch(errorCode) {
				case -100:
					tip("上传的文件数量已经超出系统限制的"+$('#instruction').uploadify('settings','queueSizeLimit')+"个文件！");
					break;
				case -110:
					tip("文件 ["+file.name+"] 大小超出系统限制的"+$('#instruction').uploadify('settings','fileSizeLimit')+"大小！");
					break;
				case -120:
					tip("文件 ["+file.name+"] 大小异常！");
					break;
				case -130:
					tip("文件 ["+file.name+"] 类型不正确！");
					break;
            }
        }
	});
	$("#uploadFile02").uploadify({
		buttonText : '上传文件',
		auto : true,
		progressData : 'speed',
		multi : true,
		height : 20,
		width : 60,
		overrideEvents : ['onDialogClose'],
		fileTypeDesc : '文件格式:',
		queueID : 'instructionfile',
		fileTypeExts : '*.jpg;*.jpeg;*.png;*.gif;*.bpm;',
		fileSizeLimit : '15MB',
		swf : 'plug-in/uploadify/uploadify.swf',	
		uploader : 'fileUploadController.do?uploadFile&businessKey='+inspectionReportId,
		onUploadSuccess : function(file,data) {
			var fileBean = $.parseJSON(data).attributes;
			var attachSpanId = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>';//存放内容容器ID
			if(checkFileName(attachSpanId,fileBean)){
				appendFileImageHtml("noAttachTip_02", attachSpanId, fileBean);
			}
		},onFallback : function(){
			tip("您未安装FLASH控件，无法上传文件！请安装FLASH控件后再试");
		},onSelectError : function(file, errorCode, errorMsg){
			switch(errorCode) {
				case -100:
					tip("上传的文件数量已经超出系统限制的"+$('#instruction').uploadify('settings','queueSizeLimit')+"个文件！");
					break;
				case -110:
					tip("文件 ["+file.name+"] 大小超出系统限制的"+$('#instruction').uploadify('settings','fileSizeLimit')+"大小！");
					break;
				case -120:
					tip("文件 ["+file.name+"] 大小异常！");
					break;
				case -130:
					tip("文件 ["+file.name+"] 类型不正确！");
					break;
            }
        }
	});
	$("#uploadFile03").uploadify({
		buttonText : '上传文件',
		auto : true,
		progressData : 'speed',
		multi : true,
		height : 20,
		width : 60,
		overrideEvents : ['onDialogClose'],
		fileTypeDesc : '文件格式:',
		queueID : 'instructionfile',
		fileTypeExts : '*.*;',
		fileSizeLimit : '15MB',
		swf : 'plug-in/uploadify/uploadify.swf',	
		uploader : 'fileUploadController.do?uploadFile&businessKey='+inspectionReportId,
		onUploadSuccess : function(file,data) {
			var fileBean = $.parseJSON(data).attributes;
			var attachSpanId = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_DIAGNOSE_PACKAGE%>';//存放内容容器ID
			if(checkFileName(attachSpanId,fileBean)){
				appendFileHtml("noAttachTip_03", attachSpanId, fileBean);
			}
		},onFallback : function(){
			tip("您未安装FLASH控件，无法上传文件！请安装FLASH控件后再试");
		},onSelectError : function(file, errorCode, errorMsg){
			switch(errorCode) {
				case -100:
					tip("上传的文件数量已经超出系统限制的"+$('#instruction').uploadify('settings','queueSizeLimit')+"个文件！");
					break;
				case -110:
					tip("文件 ["+file.name+"] 大小超出系统限制的"+$('#instruction').uploadify('settings','fileSizeLimit')+"大小！");
					break;
				case -120:
					tip("文件 ["+file.name+"] 大小异常！");
					break;
				case -130:
					tip("文件 ["+file.name+"] 类型不正确！");
					break;
            }
        }
	});
	/** Description append图片内容
	 * @param noAttachTipId 没有附件提示内容ID
	 * @param attachSpanId 附件存放容器ID
	 * @param fileBean 上传文件返回的对象
	 */
	function appendFileImageHtml(noAttachTipId, attachSpanId, fileBean){
		var html = $("#"+attachSpanId).html();
			html += "<div id='"+attchMark + index+"' class='"+ attachSpanId +"' style='display:inline-block;margin-right:3px;'>";
			html += "<a class='' href='fileUploadController.do?downLoadFile&fileLogId="+fileBean.fileKey+"' target='_blank'>";
			html += "<img src='fileUploadController.do?downLoadFile&fileLogId="+fileBean.fileKey+"' style='width:"+ imgWidth +"px;' />";
			html += "</a><p class='fileName_p' style='width: "+imgWidth+"px;'>"+fileBean.oldFileName +"</p>";
			html += '<input type="hidden" value="'+fileBean.fileKey+'" name="'+attachSpanId+'" />';
			html += '<a class="" href="javascript:void(0)" onclick="removeAttach('+index+',\''+noAttachTipId+'\',\''+attachSpanId+'\',\''+fileBean.fileKey+'\')">[删除]</a>&nbsp;&nbsp;';
			html += "</div>";
			index++;
		$("#"+noAttachTipId).hide();
		$("#"+attachSpanId).html(html);
	}
	/** Description append 文本内容
	 * @param noAttachTipId 没有附件提示内容ID
	 * @param attachSpanId 附件存放容器ID
	 * @param fileBean 上传文件返回的对象
	 */
	function appendFileHtml(noAttachTipId, attachSpanId, fileBean){
		var html = $("#"+attachSpanId).html();
			html += "<span id='"+attchMark + index+"' class='"+ attachSpanId +"'>";
			html += "<a class='' href='fileUploadController.do?downLoadFile&fileLogId="+fileBean.fileKey+"' target='_blank'>"+fileBean.name+"</a>&nbsp;";
			html += '<input type="hidden" value="'+fileBean.fileKey+'" name="'+attachSpanId+'" />';
			html += '<a class="" href="javascript:void(0)" onclick="removeAttach('+index+',\''+noAttachTipId+'\',\''+attachSpanId+'\',\''+fileBean.fileKey+'\')">[删除]</a>&nbsp;&nbsp;';
			html += "<br/></span>";
			index++;
		$("#"+noAttachTipId).hide();
		$("#"+attachSpanId).html(html);
	}
	$("#temporarySave01").click(function(){
		subForm(1);
	});
	$("#save01").click(function(){
		subForm(2);
	});
	$("#temporarySave02").click(function(){
		subForm(1);
	});
	$("#save02").click(function(){
		subForm(2);
	});
	function onlyHaveOne(name1,name2,datatype1,datatype2,check){
		//绑定 事件
		$("input[name='"+name1+"']").on('focus',function(){
			if(check){
				$(this).attr("name",name1).attr("datatype",datatype1).css("background-color","white");
				$("input[name='"+name2+"']").removeAttr("name").removeAttr("datatype").css("background-color","gray").val("");
			}else{
				$(this).attr("name",name1).css("background-color","white");
				$("input[name='"+name2+"']").removeAttr("name").css("background-color","gray").val("");
			}
		});
		$("input[name='"+name2+"']").on('focus',function(){
			if(check){
				$(this).attr("name",name2).attr("datatype",datatype2).css("background-color","white");
				$("input[name='"+name1+"']").removeAttr("name").removeAttr("datatype").css("background-color","gray").val("");
			}else{
				$(this).attr("name",name2).css("background-color","white");
				$("input[name='"+name1+"']").removeAttr("name").css("background-color","gray").val("");
			}
		});
		//并且在 暂存之后再次进入页面 判断显示的情况
		if($("input[name='"+name1+"']").val() == '' && $("input[name='"+name2+"']").val() != ''){
			if(check){
				$("input[name='"+name1+"']").removeAttr("name").removeAttr("datatype").css("background-color","gray").val("");
			}else{
				$("input[name='"+name1+"']").removeAttr("name").css("background-color","gray").val("");
			}
		}
		if($("input[name='"+name2+"']").val() == '' && $("input[name='"+name1+"']").val() != '' || 
				($("input[name='"+name1+"']").val() == '' && $("input[name='"+name2+"']").val() == '')){
			if(check){
				$("input[name='"+name2+"']").removeAttr("name").removeAttr("datatype").css("background-color","gray").val("");
			}else{
				$("input[name='"+name2+"']").removeAttr("name").css("background-color","gray").val("");
			}
		}
	}
	//填写TI/ICP不可填写ICMP版本; 填写ICMP则不可填写TI/ICP版本
	onlyHaveOne("rjTiUdt", "rjIcmpUdt","nPn","nPn",false);
	$("input[name='yxLightCenter']").on('blur',function(){
		if($(this).val() < 11){
			$("input[name='influLightFactor']").attr("datatype","*");
		}else{
			$("input[name='influLightFactor']").removeAttr("datatype");
		}
	});
	//TMS品牌选择CFGBarco时需填写
	$("input[name='tmsBrand']").on("change",function(){
		if($(this).val() == "CFGBarco"){
			$("input[name='rjTms']").attr("datatype","*");
		}else{
			$("input[name='rjTms']").removeAttr("datatype");
		}
	});
	$("input[name='projectorMbMp']").on("change",function(){
		if($(this).attr("checked") == "checked"){
			$("input[name='scoreProjectorMb'][value='1']").attr("checked","checked");
		}
	});

    var type=$("#type").val();
    console.info("大类型==="+type);
    var equipment_type = '${zyIP.equipmentSpare.type.typeDesc}';//机型
    console.info("机型===="+equipment_type);
    if(type=="DP4K-32B"||type=="DP2K-32B"||type=="DP4K-36BLP"||type=="DP2K-36BLP"||type=="RGB激光"||equipment_type=="DP4K-32B"||equipment_type=="DP2K-32B"||equipment_type=="DP4K-36BLP"||equipment_type=="DP2K-36BLP"||equipment_type=="RGB激光") {
        $(".xlVoltageType").val('1');
        $('.xlVoltageType').attr("disabled","disabled");
        $('#xlVoltage').attr("datatype","numrange");
        $('#xlVoltage').attr("min","300");
        $('#xlVoltage').attr("max","500");
        $('#xlVoltage').attr("msg","电压");
    }

	function calScore(){
		var totalScore = 0;
		var i = 0;
		$(".score:checked").each(function(){
			totalScore += parseInt($(this).val());
			i++;
		});
		$("input[name='beforeScore']").val(parseInt((totalScore/(i*5))*100));
	}
	$(".score").on("change",function(){
		calScore();
	});
	calScore();
	
	window.top.$("#maintabs").tabs({
		title:"填写巡检报告",
		onBeforeClose : function(title,index){
			if(title == '填写巡检报告'){
				$.messager.confirm('确认','你确认想要关闭',function(r){
					if(r){
						window.top.$("#maintabs").tabs({title:"填写巡检报告",onBeforeClose : function(title,index){}});//清除function
						window.top.$("#maintabs").tabs('close','填写巡检报告');
					}
				});
				return false;
			}else{
				return true;
			}
		}
	});
	window.top.$("#maintabs").tabs("select","填写巡检报告");
	window.onbeforeunload = function () {
		return "尚未提交巡检报告,确定关闭吗";
	};
	function calculationUpFileWidth(){
		var navWidth = $("#nav",top.window.document).width();
		navWidth = navWidth ? navWidth : 190;
		var topWindowWidth = $(top.window).width();
		var fileDivWidth = (topWindowWidth - navWidth) / 3 - 20;//预留空间20
		var inspectionImage = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>';
		var completionImage = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>';
		$("#uploadfilTab").find("#"+inspectionImage).css("width",fileDivWidth + "px");
		$("#uploadfilTab").find("#"+completionImage).css("width",fileDivWidth + "px");
		imgWidth = fileDivWidth / 4 - 10;//预留空间10,每行 4 个
		$("#"+inspectionImage).find("img").each(function(){
			$(this).css("width",imgWidth + "px");
		});
		$("#"+completionImage).find("img").each(function(){
			$(this).css("width",imgWidth + "px");
		});
		$("#"+inspectionImage).find(".fileName_p").each(function(){
			$(this).css("width",imgWidth + "px");
		});
		$("#"+completionImage).find(".fileName_p").each(function(){
			$(this).css("width",imgWidth + "px");
		});
	}
    //服务器型号为ICMP时，服务器序列号不能为空
    if($("#serverBrand").val() == "ICMP"){
        $("input[name='serverModel']").attr("datatype","*");
    }else{
        $("input[name='serverModel']").removeAttr("nullmsg");
        $("input[name='serverModel']").removeAttr("datatype").removeClass("Validform_error").siblings(".Validform_checktip").removeClass("Validform_wrong").html("");
    }
});
function checkItemSignWhenItemSnIsEmpty(item,sign){
	//判断item是否为空
	if($("input[name='"+item+"']").val() === ''){
		$("input[name='"+sign+"']").attr("datatype",domAttr[""+sign+""]);
	}else{
		$("input[name='"+sign+"']").removeAttr("datatype").removeClass("Validform_error").siblings(".Validform_checktip").removeClass("Validform_wrong").html("");
	}
	//判断异常原因 sign是否为空
	if($("input[name='"+sign+"']").val() === ''){
		$("input[name='"+item+"']").attr("datatype",domAttr[""+item+""]);
	}else{
		$("input[name='"+item+"']").removeAttr("datatype").removeClass("Validform_error").siblings(".Validform_checktip").removeClass("Validform_wrong").html("");
	}
}
function beforeSubmit(){
	
	checkItemSignWhenItemSnIsEmpty("engItemSn","engExceptionSign");
	checkItemSignWhenItemSnIsEmpty("tiIcpItemSn","tiIcpExceptionSign");
	checkItemSignWhenItemSnIsEmpty("lpsItemSn","lpsExceptionSign");
	checkItemSignWhenItemSnIsEmpty("enigmaItemSn","enigmaExceptionSign");
	checkItemSignWhenItemSnIsEmpty("controlerItemSn","controlerExceptionSign");
	checkItemSignWhenItemSnIsEmpty("smpsItemSn","smpsExcptionSign");
	//调用formValidata 进行验证，并能阻止提交
	form.check(true);

    var inpBeginTimeStr = $("#inpBeginTime").val();
	var inpEndTimeStr = $("#inpEndTime").val();
	if(inpBeginTimeStr != '' && inpEndTimeStr != ''){
		var currDate = new Date();
		currDate.setMinutes(0, 0, 0);
		var inpBeginTime = new Date();
		var inpBeginTimeArr = inpBeginTimeStr.split("-");
		inpBeginTime.setFullYear(inpBeginTimeArr[0], parseInt(inpBeginTimeArr[1]) - 1, inpBeginTimeArr[2]);
		inpBeginTime.setMinutes(0, 0, 0);
		var inpEndTime = new Date();
		var inpEndTimeArr = inpEndTimeStr.split("-");
		inpEndTime.setFullYear(inpEndTimeArr[0], parseInt(inpEndTimeArr[1]) - 1, inpEndTimeArr[2]);
		inpEndTime.setMinutes(0, 0, 0);
		if(inpBeginTime.getTime() > currDate.getTime()){
			tip("巡检开始日期大于当前日期");
			return false;
		}
		if(inpEndTime.getTime() > currDate.getTime()){
			tip("巡检结束日期大于当前日期");
			return false;
		}
	}
		
	if($("input[name='yxLightCenter']").val() == undefined || parseInt($("input[name='yxLightCenter']").val()) < 11){//维护后亮度低于 11 必须选择 影响亮度因素
		if($("select[name='yxInfluLightFactor']").val()==''){
			tip("请选择影响亮度因素");
			return false;
		}
	}
	
	//巡检图片最少 8 张
	var inspectionImage = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>';
	if($("."+inspectionImage).length < 8){
		tip("巡检图片最少8张");
		return false;
	}
	var diagonsePackage = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_DIAGNOSE_PACKAGE%>';
	//诊断包最少2个
	if($("."+diagonsePackage).length < 2){
		tip("诊断包最少2个");
		return false;
	}
	var completionImage = '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>';
	//巡检完工单最多能上传1个
	if($("."+completionImage).length > 1){
		tip("巡检完工单最多能上传1个");
		return false;
	}
		//巡检完工单不可为空
	if($("."+completionImage).length < 1){
		tip("巡检完工单未上传");
		return false;
	}
	$.ajax({
		url : "zyInspectionPlanController.do?doJudgePlanOfEngineerAddReport",
		data : {
			"id" : $("input[name='inspectionPlanId']").val()
		},
		cache : false,
		dataType : 'json',
		type : 'POST',
		async : false,
		success : function(data){
			if(!data.success){
				tip(data.msg);
				return false;
			}
		}
	});

	
	if($("#serverBrand").val() == ''){//如果 服务器型号 清空了 ，把其它的输入框也清空
		$("#serverBrandOther").val("");
	}
	return true;
}

function changeOption(obj){
    $('#xlVoltage').val('');
    if(obj=="1"){
        $('#xlVoltage').attr("datatype","numrange");
        $('#xlVoltage').attr("min","300");
        $('#xlVoltage').attr("max","500");
        $('#xlVoltage').attr("msg","三相电压");
    }
    if(obj=="2"){
        $('#xlVoltage').attr("datatype","numrange");
        $('#xlVoltage').attr("min","100");
        $('#xlVoltage').attr("max","300");
        $('#xlVoltage').attr("msg","单相电压");
    }
}

function checkFileName(fileType,fileBean){
	var equipment_type = '${zyIP.equipmentSpare.type.typeDesc}';//机型
	var equipment_sn = '${zyIP.equipmentSpare.sn}';//设备序列号
	var plan_id = '${zyIP.planId}';//巡检计划ID
	
	console.log("机型："+equipment_type+"，设备序列号："+equipment_sn+",巡检计划ID："+plan_id);
	
	var file_name_array = fileBean.name.split("_");
	if(fileType == '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>'){
	//巡检图片命名规则为：机型_设备序列号_项目_YYYY-MM-DD，上传时需比对机型和设备序列号与巡检计划一致。
		//巡检图片
		if(file_name_array[0] != equipment_sn){
			tip("设备序列号不一致");
			return false;
		}
	}else if(fileType == '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_DIAGNOSE_PACKAGE%>'){
	//诊断包命名规则为：diagnostics_机型_设备序列号_YYYY-MM-DDT021202.zip（例如：diagnostics_DP2K-20C_8390005069_2015-09-18T021202.zip），上传时需比对机型和设备序列号与巡检计划一致。
		//诊断包
		if(file_name_array[1] != equipment_type){
			tip("机型不一致");
			return false;
		}
		if(file_name_array[2] != equipment_sn){
			tip("设备序列号不一致");
			return false;
		}
	}else if(fileType == '<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>'){
	//巡检完工单照片命名规则为：巡检完工单_巡检计划ID_机型_设备序列号_YYYY-MM-DD, 上传时需比对巡检计划ID、机型和设备序列号与巡检计划一致。
		//完工单
		if(file_name_array[1] != plan_id){
			tip("巡检计划ID不一致");
			return false;
		}
		if(file_name_array[2] != equipment_type){
			tip("机型不一致");
			return false;
		}
		if(file_name_array[3] != equipment_sn){
			tip("设备序列号不一致");
			return false;
		}
	}
	return true;
}
function subForm(mode){
	var flag = false;
	switch(mode){
		case 1://暂存 
			flag = true;
			break;
		case 2://保存
			break;
		default:
			tip("保存失败");
			return false;
	}
	var isPass = true;
	if(!flag){
        var ldm1Sn = $("input[name='ldm1Sn']").val();
        var ldm2Sn = $("input[name='ldm2Sn']").val();
        var ldm1SecuritySn = $("input[name='ldm1SecuritySn']").val();
        var ldm2SecuritySn = $("input[name='ldm2SecuritySn']").val();
        var ldmExceptionSign = $("input[name='ldmExceptionSign']").val();
        if(isEmpty(ldm1Sn) && isEmpty(ldm2Sn) && isEmpty(ldm1SecuritySn) && isEmpty(ldm2SecuritySn) && isEmpty(ldmExceptionSign)){
            tip("LDM信息不能全部为空！");
            return false;
        }

        var _isInvalid1 = false;
        $("input[datatype='decimalrange']").each(function(j,item){
            // 你要实现的业务逻辑
//        console.log(item.value);  //输出input 中的 value 值到控制台
            var max = item.max;
            var min = item.min;
            var value = item.value;
            var msg = item.attributes.msg.nodeValue;
            console.log(msg);
            value=value.replace(/\s*/g,"").replace(/,/g,"");
            if(!/^[0-9]+([.][0-9]{1}){0,1}$/.test(value)){
                tip("请输入"+msg+"（保留1位小数）！");
                _isInvalid1 = true;
                return false;
            }

            if(parseInt(value)> parseInt(max)){
                tip(msg+"值大于最大值，请重新输入！");
                _isInvalid1 = true;
                return false;
            }
            if(parseInt(value) < parseInt(min)){
                tip(msg+"值小于最小值，请重新输入！");
                _isInvalid1 = true;
                return false;
            }

        });

        var _isInvalid2 = false;
        //获取
        $("input[datatype='numrange']").each(function(j,item){
            // 你要实现的业务逻辑
//        console.log(item.value);  //输出input 中的 value 值到控制台
            var max = item.max;
            var min = item.min;
            var value = item.value;
            var msg = item.attributes.msg.nodeValue;
            console.log(msg);
            value=value.replace(/\s*/g,"").replace(/,/g,"");
            if(!/^^-?\d+$/.test(value)){
                tip(msg+"值只能输入整数！");
                _isInvalid2 = true;
                return false;
            }
            if(parseInt(value)> parseInt(max)){
                tip(msg+"值大于最大值，请重新输入！");
                _isInvalid2 = true;
                return false;
            }
            if(parseInt(value) < parseInt(min)){
                tip(msg+"值小于最小值，请重新输入！");
                _isInvalid2 = true;
                return false;
            }

        });

        if(_isInvalid1 || _isInvalid2){
            return false;
        }

		isPass = beforeSubmit();
	}
	if(!isPass){
		return false;
	}
	form.submitForm(flag,"zyInspectionReportController.do?doAdd&saveMode="+mode);
}

function isEmpty(item){
    if(item == "" || item == undefined || item == null){
        return true;
    }
    return false;
}

function unbindBtns(){
	$("#temporarySave01").unbind('click');
	$("#save01").unbind('click');
	$("#temporarySave02").unbind('click');
	$("#save02").unbind('click');
}
/**
 * 删除附件（只删除页面的内容，不删除磁盘文件和附件记录）
 * @param index 当前js变量 标示上传的文件模块的数量
 * @param noAttachTipId 上传页面传入的参数，未上传附件时显示提示内容的domID
 * @param attachSpanId 上传页面传入的参数，上传附件后显示内容的模块domID
 */
function removeAttach(index,noAttachTipId,attachSpanId,fileBeanId) {
	$.ajax({
		url : "zyInspectionReportController.do?deleteAttachment",
		data : {
			"irId" : $("#inspectionReportId").val(),
			"fileBeanId" : fileBeanId,
			"type" : attachSpanId
			},
		cache : false,
		dataType : 'json',
		type : 'POST',
		success : function(data){
			if(data.success){
				$("#"+attachSpanId).find('#'+ attchMark + index).remove();
				if ($('.'+ attachSpanId).length == 0) {
			    	$("#"+ noAttachTipId).show().html("暂时未上传文件");
			    }
			}else{
				tip(data.msg);
			}
		}
	});
}

/**
 * 服务器型号 选择 回调函数
 */
function serverBrandChooseBack(){
	if($("#serverBrand").val() == "其他"){
		$("#serverBrandOtherTr").show();
	}else{
		$("#serverBrandOtherTr").hide();//隐藏掉
	}

    //服务器型号为ICMP时，服务器序列号不能为空
    if($("#serverBrand").val() == "ICMP"){
        $("input[name='serverModel']").attr("datatype","*");
    }else{
        $("input[name='serverModel']").removeAttr("nullmsg");
        $("input[name='serverModel']").removeAttr("datatype").removeClass("Validform_error").siblings(".Validform_checktip").removeClass("Validform_wrong").html("");
    }

	$("#serverBradnOther").val("");//清空
}
</script>
<style type="text/css">
	table{ background-color:#ddd; text-align:center;line-height: 25px;}
	td{ background-color:white; text-align:center}
</style>
</head>
<body>
<t:formvalid layout="" dialog="false" formid="inspectionReprtForm" >
	<input id="createName" name="createName" type="hidden" value="${zyInspectionR.createName }">
	<input id="createBy" name="createBy" type="hidden" value="${zyInspectionR.createBy }">
	<input id="createDate" name="createDate" type="hidden" value="${zyInspectionR.createDate }">
	<input id="updateName" name="updateName" type="hidden" value="${zyInspectionR.updateName }">
	<input id="updateBy" name="updateBy" type="hidden" value="${zyInspectionR.updateBy }">
	<input id="updateDate" name="updateDate" type="hidden" value="${zyInspectionR.updateDate }">
	<input id="type" name="type" type="hidden" value="${type}">
	<input id="BK" name="BK" type="hidden" value="${BK}">
	<input type="hidden" value="${empty zyInspectionR.id ? inspectionReportId : zyInspectionR.id}" name="id" id="inspectionReportId" />
	<input type="hidden" value="${zyIP.id }" name="inspectionPlanId" />
	<span class="content-title">巴可数字放映机现场检查维护报告</span>
	<div style="text-align:right; margin:5px;">
		<a href="javascript:void(0);" class="easyui-linkbutton" id="temporarySave01">暂存</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" id="save01">提交</a>
	</div>
	<div style="padding:5px;margin-bottom:10px;height:20px;">
		<div  style="float:left;">
			巡检计划ID：<span style="color:red;">${zyIP.planId }</span>
			放映机序列号：<span >${zyIP.equipmentSpare.sn}</span>
		</div>
		<div style="float:right;text-align:right;">
			放映机型号：<span >${zyIP.equipmentSpare.type.typeDesc}</span>
		</div>
	</div>
	<table cellpadding="0" cellspacing="0" class="nobordertable topalign"  id="uploadfilTab">
		<tr>
			<td>
				<table cellpadding="0" cellspacing="0" width="100%" class="noborder">
					<tr>
						<td colspan="2"><span class="sz12 crl_lightGray">巡检图片命名规则为：设备序列号_项目_YYYY-MM-DD</span></td>
					</tr>
					<tr>
						<td>请选择要导入的图片：</td>
						<td>
			                <div style="margin: 3px 7px 0px 3px;"><input type="button" value="上传附件" id="uploadFile01" /></div>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="height:150px;" valign="top">
							<span id="noAttachTip_01" style="color:#ccc;">${!empty zyIrAttcInspectionImage ? '' : '暂时未上传文件'}</span>
			                <div id="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>" >
			                <c:forEach items="${zyIrAttcInspectionImage }" var="fileBean" varStatus="var">
			                	<div id="attach${var.index+1 }" class="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>" style="display:inline-block;margin-right:3px;">
								<a class="" href="fileUploadController.do?downLoadFile&fileLogId=${fileBean.fileKey }" target="_blank">
									<img src="fileUploadController.do?downLoadFile&fileLogId=${fileBean.fileKey }" style="width:120px;" />
								</a>
								<p class="fileName_p" style="width: 120px;">${fileBean.oldFileName }</p>
								<input type="hidden" value="${fileBean.fileKey }" name="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>" />
								<a class="" href="javascript:void(0)" onclick="removeAttach('${var.index+1}','noAttachTip_01','<%=StaticValue.DIC_REPORT_ATTACH_TYPE_INSPECTION_IMAGE%>','${fileBean.fileKey }')">[删除]</a>
								</div>
			                </c:forEach>
			                </div>
						</td>
					</tr>
				</table>
			</td>
			<td>
				<table cellpadding="0" cellspacing="0" width="100%" class="noborder">
					<tr>
						<td colspan="2"><span class="sz12 crl_lightGray">巡检完工单照片命名规则为：巡检完工单_巡检计划ID_机型_设备序列号_YYYY-MM-DD</span></td>
					</tr>
					<tr>
						<td>巡检完工单的图片：</td>
						<td>
							<div style="margin: 3px 7px 0px 3px;"><input type="button" value="上传附件" id="uploadFile02"/></div>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="height:150px;" valign="top">
							<span id="noAttachTip_02" style="color:#ccc;">${!empty zyIrAttcCompletionImage ? '' : '暂时未上传文件'}</span>
			                <div id="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>">
			                <c:forEach items="${zyIrAttcCompletionImage }" var="fileBean" varStatus="var">
			                	<div id="attach${var.index+1 }" class="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>" style="display:inline-block;margin-right:3px;">
								<a class="" href="fileUploadController.do?downLoadFile&fileLogId=${fileBean.fileKey }" target="_blank">
									<img src="fileUploadController.do?downLoadFile&fileLogId=${fileBean.fileKey }" style="width:120px;" />
								</a>
								<p class="fileName_p" style="width: 120px;">${fileBean.oldFileName }</p>
								<input type="hidden" value="${fileBean.fileKey }" name="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>" />
								<a class="" href="javascript:void(0)" onclick="removeAttach('${var.index+1}','noAttachTip_02','<%=StaticValue.DIC_REPORT_ATTACH_TYPE_COMPLETION_IMAGE%>','${fileBean.fileKey }')">[删除]</a>
								</div>
			                </c:forEach>
			                </div>
						</td>
					</tr>
				</table>
			</td>
			<td>
				<table cellpadding="0" cellspacing="0" width="100%" class="noborder">
					<tr>
						<td colspan="2"><span class="sz12 crl_lightGray">诊断包命名规则为：diagnostics_机型_设备序列号_YYYY-MM-DDT021202.zip</span></td>
					</tr>
					<tr>
						<td>请选择要导入的诊断包：</td>
						<td>
							<div style="margin: 3px 7px 0px 3px;"><input type="button" value="上传附件" id="uploadFile03" /></div>
							<!-- <input type="button" value="上传附件" id="uploadFile03" onclick="uploadAttachment(pathCallback,'noAttachTip_03','attachSpan_03')"/> -->
						</td>
					</tr>
					<tr>
						<td colspan="2" style="height:150px;" valign="top">
							<span id="noAttachTip_03" style="color:#ccc;">${!empty zyIrAttcPackage ? '' : '暂时未上传文件'}</span>
			                <span id="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_DIAGNOSE_PACKAGE%>">
			                <c:forEach items="${zyIrAttcPackage }" var="fileBean" varStatus="var">
			                	<span id="attach${var.index+1 }" class="<%=StaticValue.DIC_REPORT_ATTACH_TYPE_DIAGNOSE_PACKAGE%>">
								<a class="" href="fileUploadController.do?downLoadFile&fileLogId=${fileBean.fileKey }" target="_blank">${fileBean.oldFileName }</a>
								<input type="hidden" value="${fileBean.fileKey }" />
								<a class="" href="javascript:void(0)" onclick="removeAttach('${var.index+1}','noAttachTip_03','<%=StaticValue.DIC_REPORT_ATTACH_TYPE_DIAGNOSE_PACKAGE%>','${fileBean.fileKey }')">[删除]</a>
								<br/></span>
			                </c:forEach>
			                </span>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<table style="width: 100%;" cellpadding="0" cellspacing="0" border="0" class="nobordertable noborder">
		<tr>
			<td style="width:100px;">
				<label class="Validform_label">影院名称:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.cmActualName ? zyIP.equipmentSpare.zyCinema.name : zyInspectionR.cmActualName }"  name="cmActualName" datatype="*"
					type="text" style="width: 400px">
				<span class="Validform_checktip"></span> 
				<label class="Validform_label" style="display: none;">影院名称</label>
			</td>
			<td style="width:100px;">
				<label class="Validform_label"> 影院地址:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.cmActualAddr ? zyIP.equipmentSpare.zyCinema.address : zyInspectionR.cmActualAddr }" name="cmActualAddr" datatype="*"
					type="text" style="width: 400px">
				<span class="Validform_checktip"></span> 
				<label class="Validform_label" style="display: none;">影院地址</label>
			</td>
		</tr>
		<tr>
			<td>
				<label class="Validform_label">巡检联系人:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.inpConUser ? zyIP.contacter.name : zyInspectionR.inpConUser}" name="inpConUser" datatype="*"
					type="text" style="width: 400px">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">巡检联系人</label>
			</td>
			<td>
				<label class="Validform_label">巡检联系人电话:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.inpConUserTel ? 
									(empty zyIP.contacter.cellphone1 ?  zyIP.contacter.cellphone2 : zyIP.contacter.cellphone1)
								 : zyInspectionR.inpConUserTel}" name="inpConUserTel" datatype="num"
					type="text" style="width: 400px">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">巡检联系人电话</label>
			</td>
		</tr>
		<tr>
			<td>
				<label class="Validform_label">影院技术主管姓名:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.directorUser ? zyInspectionR.inpConUser : zyInspectionR.directorUser}" name="directorUser" datatype="*"
					   type="text" style="width: 400px">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">影院技术主管姓名</label>
			</td>
			<td>
				<label class="Validform_label">影院技术主管电话:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.directorUserTel ? zyInspectionR.inpConUserTel: zyInspectionR.directorUserTel}" name="directorUserTel" datatype="num"
					   type="text" style="width: 400px">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">影院技术主管电话</label>
			</td>
		</tr>
		<tr>
			<td>
				<label class="Validform_label">影厅号:</label>
			</td>
			<td>
				<input value="${empty zyInspectionR.houseName ? zyIP.equipmentSpare.zyCinema.room : zyInspectionR.houseName}" name="houseName"
					type="text" style="width: 400px">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">影厅号</label>
			</td>
			<td>
				<label class="Validform_label">TMS品牌:</label>
			</td>
			<td>
				<input value="${zyInspectionR.tmsBrand.id }" name="tmsBrand.id" id="tmsBrandId" type="hidden" />
				<input value="${zyInspectionR.tmsBrand.typeDesc }" id="tmsBrand" type="text" readonly="readonly" style="width: 400px" />
				<t:choose hiddenName="tmsBrandId" hiddenid="id" inputTextname="tmsBrand" textname="item"  
					title="TMS品牌" url="zyEquipmentTypeController.do?goChooseEquipmentTypeForIr&typeDesc=TMS&pTypeDesc=周边产品&hidId=tmsBrandId&valId=tmsBrand" name="zyEquipmentTypeList" width="400px" height="400px"
					icon="icon-search"  isclear="true" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">TMS品牌</label>
			</td>
		</tr>
		<tr>
			<td>
				<label class="Validform_label">服务器序列号: </label></td>
			<td>
				<input value="${zyInspectionR.serverModel }" name="serverModel" 
					type="text" style="width: 400px">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">服务器序列号</label>
			</td>
			<td>
				<label class="Validform_label">服务器型号:</label>
			</td>
			<td>
				<input value="${zyInspectionR.serverBrand.id }" name="serverBrand.id" id="serverBrandId" type="hidden" />
				<input value="${zyInspectionR.serverBrand.typeDesc }" id="serverBrand" type="text" readonly="readonly" style="width: 400px" datatype="*" nullmsg="请填写服务器信息"/>
				<t:choose hiddenName="serverBrandId" hiddenid="id" inputTextname="serverBrand" textname="item" fun="serverBrandChooseBack"
					title="服务器" url="zyEquipmentTypeController.do?goChooseEquipmentTypeForIr&ppTypeDesc=服务器&hidId=serverBrandId&valId=serverBrand" name="zyEquipmentTypeList" width="400px" height="400px"
					icon="icon-search"  isclear="true" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">服务器型号</label>
			</td>
		</tr>
		<tr style="<c:if test="${zyInspectionR.serverBrand.typeDesc ne '其他'}">display:none;</c:if>" id="serverBrandOtherTr" >
			<td></td>
			<td></td>
			<td></td>
			<td>
				<input type="text" name="serverBrandOther" id="serverBrandOther" value="${zyInspectionR.serverBrandOther}" style="width: 400px;" />
			</td>
		</tr>
		<tr>
			<td>
				<label class="Validform_label">巡检开始时间:</label>
			</td>
			<td>
				<input class="Wdate" id="inpBeginTime" value="<fmt:formatDate  value="${empty zyInspectionR.inpBeginTime ? zyIP.beginTime : zyInspectionR.inpBeginTime}" type="both" pattern="yyyy-MM-dd" />" 
					name="inpBeginTime" datatype="*" type="text" style="width: 400px" onClick="WdatePicker({maxDate:'#F{$dp.$D(\'inpEndTime\')}'})" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">巡检开始时间</label>
			</td>
			<td>
				<label class="Validform_label">巡检结束时间:</label>
			</td>
			<td>
				<input class="Wdate" id="inpEndTime" value="<fmt:formatDate  value="${zyInspectionR.inpEndTime}" type="both" pattern="yyyy-MM-dd" />" 
					name="inpEndTime" datatype="*" type="text" style="width: 400px" onClick="WdatePicker({minDate:'#F{$dp.$D(\'inpBeginTime\')}',maxDate:'%y-%M-%d'})" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">巡检结束时间</label>
			</td>
		</tr>
	</table>
	<br/>
	<table cellpadding="0" cellspacing="0" class="nobordertable">
		<tr>
			<th style="width: 170px;">检查/维护</th>
			<th style="width: 350px;">项目</th>
			<th style="width: 240px;">维护前状态</th>
			<th style="width: 400px;">维护项目记录</th>
		</tr>
		<tr>
			<td rowspan="3">
				<label class="table1td">影厅情况</label>
			</td>
			<td>
				<label>机房工作环境(10-30℃,<75%)</label>
			</td>
			<td>
				<t:dictSelect field="ytScoreRm" type="radio" clazz="score" defaultVal="${zyInspectionR.ytScoreRm }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>" ></t:dictSelect>
			</td>
			<td>
				温度<input value="${zyInspectionR.ytRmTemperature }" name="ytRmTemperature" datatype="numrange" min="-10" max="50" nullmsg="请填写 温度"
					type="text" style="width: 50px" msg="温度">
				湿度<input value="${zyInspectionR.ytRmHumidity }" name="ytRmHumidity" datatype="numrange" min="0" max="100" nullmsg="请填写 湿度"
					type="text" style="width: 50px" msg="湿度">%
			</td>
		</tr>
		<tr>
			<td>
				<label>银幕状况</label>
			</td>
			<td>
				<t:dictSelect field="ytScoreScreen" type="radio" clazz="score" defaultVal="${zyInspectionR.ytScoreScreen }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
<%--				增益<input value="${zyInspectionR.ytScreenGain }" name="ytScreenGain" --%>
<%--					type="text" style="width: 50px">--%>
				<%--使用年限<input value="${zyInspectionR.ytServicesLife }" name="ytServicesLife" datatype="nPn" nullmsg="请填写 使用年限"--%>
					<%--type="text" style="width: 50px"><br/>--%>
				<%--宽<input value="${zyInspectionR.ytScopeW }" name="ytScopeW" datatype="nPn" nullmsg="请填写 宽"--%>
					<%--type="text" style="width: 50px">--%>
				<%--高<input value="${zyInspectionR.ytScopeH }" name="ytScopeH" datatype="nPn" nullmsg="请填写 高"--%>
					<%--type="text" style="width: 50px">--%>
				<%--PD<input value="${zyInspectionR.ytPd }" name="ytPd" datatype="nPn" nullmsg="请填写 PD"--%>
					<%--type="text" style="width: 50px">--%>
			</td>
		</tr>
		<tr>
			<td>
				<label>影厅综合评价</label>
			</td>
			<td>
				<t:dictSelect field="ytScoreCe" type="radio" clazz="score" defaultVal="${zyInspectionR.ytScoreCe }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<%--问题<input value="${zyInspectionR.ytProblem }" name="ytProblem"
					type="text" style="width: 200px">--%>
					主要异常项（如有多项请在建议中注明）：
					<t:dictSelect field="ytProblem" type="radio" clazz="score" defaultVal="${zyInspectionR.ytProblem }" typeGroupCode="<%=StaticValue.DIC_YT_PROBLEM %>"></t:dictSelect>
			</td>
		</tr>
		<tr>
			<td rowspan="4">
				<label class="table1td">清洁</label>
			</td>
			<td>
				<label>整体</label>
			</td>
			<td>
				<t:dictSelect field="qjScoreOverall" type="radio" clazz="score" defaultVal="${zyInspectionR.qjScoreOverall }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="qjOverallClMp" ${zyInspectionR.qjOverallClMp eq 'on' ? 'checked="checked"':''}  />清洁</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>防尘滤网</label>
			</td>
			<td>
				<t:dictSelect field="qjScoreDustFilter" type="radio" clazz="score" defaultVal="${zyInspectionR.qjScoreDustFilter }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="radio" name="qjDustFilterClMp" value="1" ${zyInspectionR.qjDustFilterClMp eq '1' ? 'checked="checked"':''}  />清洁</label>
				<label ><input type="radio" name="qjDustFilterClMp" value="2" ${zyInspectionR.qjDustFilterClMp eq '2' ? 'checked="checked"':''} />更换</label>
				<label ><input type="radio" name="qjDustFilterClMp" value="3" ${zyInspectionR.qjDustFilterClMp eq '3' ? 'checked="checked"':''} />不合格</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>进风口处清洁情况</label>
			</td>
			<td>
				<t:dictSelect field="qjScoreAireInlet" type="radio" clazz="score" defaultVal="${zyInspectionR.qjScoreAireInlet }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="qjAirInletClMp" value="1" ${zyInspectionR.qjAirInletClMp eq '1' ? 'checked="checked"':''} />清洁</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>电路板箱/模块/灯电源</label>
			</td>
			<td>
				<t:dictSelect field="qjScoreEleBox" type="radio" clazz="score" defaultVal="${zyInspectionR.qjScoreEleBox }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="qjEleBoxClMp" ${zyInspectionR.qjEleBoxClMp eq 'on' ? 'checked="checked"':''} />清洁</label>
			</td>
		</tr>
		<tr>
			<td rowspan="3">
				<label class="table1td">光学部件</label>
			</td>
			<td>
				<label>镜头/引擎入出口/冷镜</label>
			</td>
			<td>
				<t:dictSelect field="gxScoreCamLens" type="radio" clazz="score" defaultVal="${zyInspectionR.gxScoreCamLens }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="gxCamLensClMp" ${zyInspectionR.gxCamLensClMp eq 'on' ? 'checked="checked"':''} />清洁</label>
				选用镜头<input value="${zyInspectionR.gxCamLens }" name="gxCamLens" datatype="nLINEn" nullmsg="请填写 选用镜头"
					type="text" style="width: 50px">
			</td>
		</tr>
		<tr>
			<td>
				<label>反光镜/UV 镜</label>
			</td>
			<td>
				<t:dictSelect field="gxScoreReflectiveLens" type="radio" clazz="score" defaultVal="${zyInspectionR.gxScoreReflectiveLens }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="gxReflectiveLensClMp" ${zyInspectionR.gxReflectiveLensClMp eq 'on' ? 'checked="checked"':''}  />清洁</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>光路</label>
			</td>
			<td>
				<t:dictSelect field="gxScoreLightPath" type="radio" clazz="score" defaultVal="${empty zyInspectionR.gxScoreLightPath ? zyIP.lightPath : zyInspectionR.gxScoreLightPath}" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<t:dictSelect field="gxLightPath" type="radio" defaultVal="${zyInspectionR.gxLightPath }" typeGroupCode="<%=StaticValue.DIC_LIGHT_PATH %>"></t:dictSelect>
				收费项目：<t:dictSelect field="gxLightPathChargesMp" type="checkbox" defaultVal="${zyInspectionR.gxLightPathChargesMp }" typeGroupCode="<%=StaticValue.DIC_GXLIGHTPATHCHARGESMP %>" />
			</td>
		</tr>
		<tr>
			<td rowspan="5">
				<label class="table1td">冷却系统</label>
			</td>
			<td>
				<label>运行状态</label>
			</td>
			<td>
				<t:dictSelect field="lqScoreRunningState" type="radio" clazz="score" defaultVal="${zyInspectionR.lqScoreRunningState }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="radio" name="lqRunningStateMp" value="1" ${zyInspectionR.lqRunningStateMp eq '1' ? 'checked="checked"':''} />维修</label>
				<label ><input type="radio" name="lqRunningStateMp" value="2" ${zyInspectionR.lqRunningStateMp eq '2' ? 'checked="checked"':''} />合格</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>是否漏液</label>
			</td>
			<td>
				<label ><input type="radio" name="lqIsLeakLiquid" value="1" ${zyInspectionR.lqIsLeakLiquid eq '1' ? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="lqIsLeakLiquid" value="2" ${zyInspectionR.lqIsLeakLiquid eq '2' ? 'checked="checked"':''} />否</label>
			</td>
			<td>
				<label ><input type="radio" name="lqIsLeakLiquidMp" value="1" ${zyInspectionR.lqIsLeakLiquidMp eq '1' ? 'checked="checked"':''} />维修</label>
				<label ><input type="radio" name="lqIsLeakLiquidMp" value="2" ${zyInspectionR.lqIsLeakLiquidMp eq '2' ? 'checked="checked"':''} />合格</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>是否绝缘</label>
			</td>
			<td>
				<label ><input type="radio" name="lqIsInsulation" value="1" ${zyInspectionR.lqIsInsulation eq '1' ? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="lqIsInsulation" value="2" ${zyInspectionR.lqIsInsulation eq '2' ? 'checked="checked"':''} />否</label>
			</td>
			<td>
				<label ><input type="radio" name="lqIsInsulationMp" value="1" ${zyInspectionR.lqIsInsulationMp eq '1' ? 'checked="checked"':''} />维修</label>
				<label ><input type="radio" name="lqIsInsulationMp" value="2" ${zyInspectionR.lqIsInsulationMp eq '2' ? 'checked="checked"':''} />合格</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>是否原厂冷却液</label>
			</td>
			<td>
				<label ><input type="radio" name="lqIsOriginalCooling" value="1" ${zyInspectionR.lqIsOriginalCooling eq '1' ? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="lqIsOriginalCooling" value="2" ${zyInspectionR.lqIsOriginalCooling eq '2' ? 'checked="checked"':''} />否</label>
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td>
				<label>冷却液状况</label>
			</td>
			<td>
				<t:dictSelect field="lqScoreCoolantState" type="radio" clazz="score" defaultVal="${zyInspectionR.lqScoreCoolantState }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="radio" name="lqCoolantStateMp" value="1" ${zyInspectionR.lqCoolantStateMp eq '1' ? 'checked="checked"':''} />更换</label>
				<label ><input type="radio" name="lqCoolantStateMp" value="2" ${zyInspectionR.lqCoolantStateMp eq '2' ? 'checked="checked"':''} />补充</label>
				<label ><input type="radio" name="lqCoolantStateMp" value="3" ${zyInspectionR.lqCoolantStateMp eq '3' ? 'checked="checked"':''} />合格</label>
			</td>
		</tr>
		<tr>
			<td rowspan="3">
				<label class="table1td">光源功率</label>
			</td>
			<td>
				<label>干燥器&冷凝水排放是否正常</label>
			</td>
			<td>
				<label ><input type="radio" name="gyDryerCwIsNormal" value="1" ${zyInspectionR.gyDryerCwIsNormal eq '1' ? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="gyDryerCwIsNormal" value="2" ${zyInspectionR.gyDryerCwIsNormal eq '2' ? 'checked="checked"':''} />否</label>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>
				<label>激光模块是否正常（软件）</label>
			</td>
			<td>
				<label ><input type="radio" name="gyLaserIsNormal" value="1" ${zyInspectionR.gyLaserIsNormal eq '1' ? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="gyLaserIsNormal" value="2" ${zyInspectionR.gyLaserIsNormal eq '2' ? 'checked="checked"':''} />否</label>
			</td>
			<td>
				<input type="hidden" value="${type}">
				<c:choose>
					<c:when test="${type=='荧光粉激光'}">
						<input value="${zyInspectionR.xdPower }" name="xdPower" type="text" style="width: 80px" datatype="numrange" min="0" max="100" msg="功率">%
					</c:when>
					<c:when test="${type=='X系列'}">
						<input value="${zyInspectionR.xdPower }" name="xdPower" type="text" style="width: 80px" datatype="numrange" min="0" max="100" msg="功率">%
					</c:when>
					<c:otherwise>
						<input value="${zyInspectionR.xdPower }" name="xdPower" datatype="numrange" nullmsg="请填写 功率" type="text" style="width: 80px" msg="功率">%
					</c:otherwise>
				</c:choose>
			</td>
		</tr>
		<tr>
			<td>
				<label>正常使用功率</label>
			</td>
			<td></td>
			<td>
				<input type="text" value="${zyInspectionR.normalPower}" name="normalPower" datatype="numrange" min="0" max="100" msg="正常使用功率" nullmsg="请填写 正常使用功率"/>%
			</td>
		</tr>
		<tr>
			<td>
				<label class="table1td">总运行时间</label>
			</td>
			<td>
				<label>机器总运行时间</label>
			</td>
			<td>
				<input value="${zyInspectionR.totalRunTime }" name="totalRunTime" datatype="numrange" min="1"
					   type="text" style="width: 100px" msg="机器运行总时间">小时
			</td>
			<td>
				<label ><input type="checkbox" name="isSystemCalibrationTime" ${zyInspectionR.isSystemCalibrationTime eq 'on' ? 'checked="checked"':''}  />校准系统时间</label>
			</td>
		</tr>
		<tr>
			<td rowspan="2">
				<label class="table1td">线路检查</label>
			</td>
			<td>
				<label>交流电源入线（紧固）</label>
			</td>
			<td>
				<t:dictSelect field="xlScoreAc" type="radio" clazz="score" defaultVal="${zyInspectionR.xlScoreAc }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="radio" name="xlAcIntoLineMp" value="1" ${zyInspectionR.xlAcIntoLineMp eq '1' ? 'checked="checked"':''} />紧固</label>
				<label ><input type="radio" name="xlAcIntoLineMp" value="2" ${zyInspectionR.xlAcIntoLineMp eq '2' ? 'checked="checked"':''} />良好</label>
				<label ><input type="radio" name="xlAcIntoLineMp" value="3" ${zyInspectionR.xlAcIntoLineMp eq '3' ? 'checked="checked"':''} />老化/破损</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>三相电压/单相电压(v)</label>
			</td>
			<td>
				<t:dictSelect field="xlScoreVoltage" type="radio" clazz="score" defaultVal="${zyInspectionR.xlScoreVoltage }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<select name="xlVoltageType" class="xlVoltageType" onchange="changeOption(this.value)">
					<option value="1" ${zyInspectionR.xlVoltageType eq '1' ? 'selected="selected"':''} >三</option>
					<option value="2" ${zyInspectionR.xlVoltageType eq '2' ? 'selected="selected"':''} >单</option>
				</select>
				相电压：<input value="${zyInspectionR.xlVoltage }" name="xlVoltage"
						   type="text" style="width: 80px" id="xlVoltage"><br/>
				零-地电压：<input value="${zyInspectionR.xlZeroVoltage }" name="xlZeroVoltage"  datatype="decimalrange" min="0" max="60"
							 type="text" style="width: 80px" msg="零-地电压">
			</td>
		</tr>
		<tr>
			<td rowspan="6">
				<label class="table1td">影像质量</label>
			</td>
			<td>
				<label>聚焦（Flat/Scope）/会聚</label>
			</td>
			<td>
				<t:dictSelect field="yxScoreFocus" type="radio" clazz="score" defaultVal="${zyInspectionR.yxScoreFocus }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<t:dictSelect field="yxFocusState" type="radio" defaultVal="${zyInspectionR.yxFocusState }" typeGroupCode="<%=StaticValue.DIC_YXFOCUSSTATE %>"></t:dictSelect>
			</td>
		</tr>
		<tr>
			<td>
				<label>遮框（Flat/Scope）</label>
			</td>
			<td>
				<t:dictSelect field="yxScoreFrame" type="radio" clazz="score" defaultVal="${zyInspectionR.yxScoreFrame }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="yxScreenFrameState" ${zyInspectionR.yxScreenFrameState eq 'on' ? 'checked="checked"':''}  />良好</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>亮度（校准/一致性）</label>
				<label>(14±3 fL /48±10.2 cd/m2)</label>
			</td>
			<td>
				中：<input value="${zyInspectionR.yxLightC }" name="yxLightC"  datatype="decimalrange" min="0" max="200" nullmsg="请填写 中"
					type="text" style="width: 80px" msg="亮度中">
			</td>
			<td>
				<div>左：<input value="${zyInspectionR.yxLightLeft }" name="yxLightLeft"  datatype="decimalrange" min="0" max="200" nullmsg="请填写 左"
					type="text" style="width: 80px"  msg="亮度左">
				中：<input value="${zyInspectionR.yxLightCenter }" name="yxLightCenter"  datatype="decimalrange" min="0" max="200" nullmsg="请填写 中"
					type="text" style="width: 80px"  msg="亮度中">
				右：<input value="${zyInspectionR.yxLightRight }" name="yxLightRight"  datatype="decimalrange" min="0" max="200" nullmsg="请填写 右"
					type="text" style="width: 80px"  msg="亮度右"></div>
				<div>亮度最大值：<input value="${zyInspectionR.yxLightMax }" name="yxLightMax"  datatype="decimalrange" min="0" max="200" nullmsg="请填写 亮度最大值"
				                  type="text" style="width: 100px"  msg="亮度最大值"/></div>
				<div>影响亮度因素：<t:dictSelect field="yxInfluLightFactor" type="select" defaultVal="${zyInspectionR.yxInfluLightFactor }" typeGroupCode="<%=StaticValue.DIC_YXINFLULIGHTFACOTR %>" /></div>
			</td>
		</tr>
		<tr>
			<td>
				<label>色彩(白x=.314 y=.351)</label>
			</td>
			<td></td>
			<td>
				<label ><input type="radio" name="yxColorState" value="1" ${zyInspectionR.yxColorState eq '1'? 'checked="checked"':''} />调用正确色彩文件</label>
				<label ><input type="radio" name="yxColorState" value="2" ${zyInspectionR.yxColorState eq '2'? 'checked="checked"':''} />色彩正常</label>
				<label ><input type="radio" name="yxColorState" value="3" ${zyInspectionR.yxColorState eq '3'? 'checked="checked"':''} />需校色</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>3D系统类型与状态</label>
			</td>
			<td>
				<t:dictSelect field="yxScore3d" type="radio" clazz="score" defaultVal="${zyInspectionR.yxScore3d }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="radio" name="yx3dType" value="1" ${zyInspectionR.yx3dType eq '1'? 'checked="checked"':''} />双机偏振</label>
				<label ><input type="radio" name="yx3dType" value="2" ${zyInspectionR.yx3dType eq '2'? 'checked="checked"':''} />主动</label>
				<label ><input type="radio" name="yx3dType" value="3" ${zyInspectionR.yx3dType eq '3'? 'checked="checked"':''} />RealD</label>
				<label ><input type="radio" name="yx3dType" value="4" ${zyInspectionR.yx3dType eq '4'? 'checked="checked"':''} />Dolby</label><br />
				3D亮度：<input value="${zyInspectionR.yx3dLight }" name="yx3dLight" type="text" style="width: 80px">
			</td>
		</tr>
		<tr>
			<td>
				<label>CLO亮度值</label>
			</td>
			<td>
				<input value="${zyInspectionR.cLOLuminance }" name="cLOLuminance"  datatype="decimalrange" min="0" max="200" nullmsg="请填写 CLO亮度值"
					   type="text" style="width: 80px" msg="CLO亮度值">
			</td><td></td>
		</tr>
		<tr>
			<td rowspan="5">
				<label class="table1td">软件版本/升级</label>
			</td>
			<td>
				<label>Barco DP / DCTP</label>
			</td>
			<td>
<%--				<input value="${zyInspectionR.rjBarcoDp }" name="rjBarcoDp" datatype="num"--%>
<%--					type="text" style="width: 80px">/--%>
<%--				<input value="${zyInspectionR.rjDctp }" name="rjDctp" datatype="num"--%>
<%--					type="text" style="width: 80px">--%>
			</td>
			<td>
				升级：Barco DP
				<t:dictSelect field="rjBarcorDpUdt" type="select" typeGroupCode="<%=StaticValue.Rj_barcor_dp_udt %>" defaultVal="${zyInspectionR.rjBarcorDpUdt }"/>
				DCTP
				<input type="text" name="rjDctpUdt"  value="${zyInspectionR.rjDctpUdt }" datatype="/^\d+(\.\d+)*$/" nullMsg="请输入  DCTP版本" style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />
			</td>
		</tr>
		<tr>
			<td>
				<label>TI/ICP/ICMP</label>
			</td>
			<td></td>
			<td>
				升级：TI / ICP
					<%--<input type="text" name="rjTiUdt" value="${zyInspectionR.rjTiUdt }"--%>
					<%--style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />--%>
				<t:dictSelect field="rjTiUdt" type="select" typeGroupCode="<%=StaticValue.Rj_ti_udt %>" defaultVal="${zyInspectionR.rjTiUdt }" />

				ICMP
					<%--<input type="text" name="rjIcmpUdt" value="${zyInspectionR.rjIcmpUdt }"--%>
					<%--style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />--%>
				<t:dictSelect field="rjIcmpUdt" type="select" typeGroupCode="<%=StaticValue.Rj_icmp_udt %>" defaultVal="${zyInspectionR.rjIcmpUdt }" />

					<%--IMS1000<input type="text" name="rjIms1000Udt" value="${zyInspectionR.rjIms1000Udt }"--%>
					<%--style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />--%>
			</td>
		</tr>
		<tr>
			<td>
				<label>TMS</label>
			</td>
			<td>
<%--				<input value="${zyInspectionR.rjIcmp }" name="rjIcmp" datatype="num"--%>
<%--					type="text" style="width: 80px">/--%>
<%--				<input value="${zyInspectionR.rjTms }" name="rjTms" datatype="num"--%>
<%--					type="text" style="width: 80px">--%>
			</td>
			<td>
				升级：软件<input type="text" name="rj1" value="${zyInspectionR.rj1 }"
					style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />
				<t:dictSelect field="rjIcmptmsMp" type="radio" defaultVal="${zyInspectionR.rjIcmptmsMp }" typeGroupCode="<%=StaticValue.DIC_RJICMPTMSMP %>"></t:dictSelect>
			</td>
		</tr>
		<tr>
			<td>
				<label>NOC</label>
			</td>
			<td></td>
			<td>
				升级：Software<input type="text" name="rjNocSoftwareUdt" value="${zyInspectionR.rjNocSoftwareUdt }" 
					style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />
				品牌<input type="text" name="rjNocBrandUdt" value="${zyInspectionR.rjNocBrandUdt }"
					style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />
				<label ><input type="checkbox" name="rjNocIsOnline" value="1" ${zyInspectionR.rjNocIsOnline eq '1'? 'checked="checked"':''}" />是否在线</label>
				<br/>
				<label ><input type="radio" name="rjVpnGatewayIsNormal" value="1" ${zyInspectionR.rjVpnGatewayIsNormal eq '1'? 'checked="checked"':''} />VPN硬件gateway是否正常</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>Macro,PCF配置文件检查测试</label>
			</td>
			<td></td>
			<td>
				<label ><input type="radio" name="rjPcfTestMp" value="1" ${zyInspectionR.rjPcfTestMp eq '1'? 'checked="checked"':''} />正确</label>
				<label ><input type="radio" name="rjPcfTestMp" value="2" ${zyInspectionR.rjPcfTestMp eq '2'? 'checked="checked"':''} />更新</label>
			</td>
		</tr>
		<%--<tr>--%>
			<%--<td>--%>
				<%--<label>日志下载/克隆备份</label>--%>
			<%--</td>--%>
			<%--<td></td>--%>
			<%--<td>--%>
				<%--<label ><input type="checkbox" name="ogMp" ${zyInspectionR.ogMp eq 'on'? 'checked="checked"':''}" />备份到触摸屏</label>--%>
			<%--</td>--%>
		<%--</tr>--%>
		<tr>
			<td rowspan="2">
				<label class="table1td">服务器</label>
			</td>
			<td>
				<label>硬盘空间&转速检查</label>
			</td>
			<td></td>
			<td>
				<label ><input type="radio" name="fwqHdSpaceSpeedMp" value="1" ${zyInspectionR.fwqHdSpaceSpeedMp eq '1'? 'checked="checked"':''} />维修</label>
				<label ><input type="radio" name="fwqHdSpaceSpeedMp" value="2" ${zyInspectionR.fwqHdSpaceSpeedMp eq '2'? 'checked="checked"':''} />清理</label>
				<label ><input type="radio" name="fwqHdSpaceSpeedMp" value="3" ${zyInspectionR.fwqHdSpaceSpeedMp eq '3'? 'checked="checked"':''} />合格</label>
			</td>
		</tr>
		<tr>
			<td>
				<label>时间校准</label>
			</td>
			<td></td>
			<td>
				<label ><input type="radio" name="fwqTimeCalibrationMp" value="1" ${zyInspectionR.fwqTimeCalibrationMp eq '1'? 'checked="checked"':''} />校准</label>
				<label ><input type="radio" name="fwqTimeCalibrationMp" value="2" ${zyInspectionR.fwqTimeCalibrationMp eq '2'? 'checked="checked"':''} />正确</label>
			</td>
		</tr>
		<tr>
			<td rowspan="5">
				<label class="table1td">TMS</label>
			</td>
			<td>
				<label>局域网连接是否正常</label>
			</td>
			<td>
				<label ><input type="radio" name="tmsLanConnIsNomal" value="1" ${zyInspectionR.tmsLanConnIsNomal eq '1'? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="tmsLanConnIsNomal" value="2" ${zyInspectionR.tmsLanConnIsNomal eq '2'? 'checked="checked"':''} />否</label>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>
				<label>DCP传输正常</label>
			</td>
			<td>
				<label ><input type="radio" name="tmsDcpTransIsNormal" value="1" ${zyInspectionR.tmsDcpTransIsNormal eq '1'? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="tmsDcpTransIsNormal" value="2" ${zyInspectionR.tmsDcpTransIsNormal eq '2'? 'checked="checked"':''} />否</label>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>
				<label>周边设备控制正常</label>
			</td>
			<td>
				<label ><input type="radio" name="tmsPeControlIsNormal" value="1" ${zyInspectionR.tmsPeControlIsNormal eq '1'? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="tmsPeControlIsNormal" value="2" ${zyInspectionR.tmsPeControlIsNormal eq '2'? 'checked="checked"':''} />否</label>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>
				<label>放映列表排期正常</label>
			</td>
			<td>
				<label ><input type="radio" name="tmsSlScheduleIsNormal" value="1" ${zyInspectionR.tmsSlScheduleIsNormal eq '1'? 'checked="checked"':''} />是</label>
				<label ><input type="radio" name="tmsSlScheduleIsNormal" value="2" ${zyInspectionR.tmsSlScheduleIsNormal eq '2'? 'checked="checked"':''} />否</label>
			</td>
			<td></td>
		</tr>
		<tr>
			<td>
				<label>储存空间</label>
			</td>
			<td></td>
			<td>
				储存空间剩余<input type="text" name="tmsSsSurplus" value="${zyInspectionR.tmsSsSurplus }"
					style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />
				储存空间总数<input type="text" name="tmsSsTotal" value="${zyInspectionR.tmsSsTotal }"
					style="width:55px; border-left:0px;border-right:0px;border-top:0px;border-bottom:1px solid black;" />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<label class="table1td">巴可数字放映机维护保养手册</label>
			</td>
			<td>
				<t:dictSelect field="scoreProjectorMb" type="radio" clazz="score" defaultVal="${zyInspectionR.scoreProjectorMb }" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>"></t:dictSelect>
			</td>
			<td>
				<label ><input type="checkbox" name="projectorMbMp" ${zyInspectionR.projectorMbMp eq 'on'? 'checked="checked"':''} />暂无维护保养手册</label>
			</td>
		</tr>
		<tr>
			<td>
				<label class="table1td">综合评分</label>
			</td>
			<td>
				维护前总分和维护后评分
			</td>
			<td colspan="2">
				<input type="text" name="beforeScore" value="${zyInspectionR.beforeScore }" readonly="readonly" value="0"/>
				<t:dictSelect field="afterScore" type="radio" defaultVal="${zyInspectionR.afterScore }" typeGroupCode="<%=StaticValue.DIC_AFTER_SCORE %>"></t:dictSelect>
				&nbsp;&nbsp;&nbsp;&nbsp;
				注：<textarea rows="2" cols="50" name="remark">${zyInspectionR.remark }</textarea>
			</td>
		</tr>
	</table>
	<script type="text/javascript">
	var domAttr = {};//把dataype属性放进来
	$(function(){
		function bindBlurOnThisEmptyThatCannotEmpty(item,sign){
			domAttr[""+item+""] = $("input[name='"+item+"']").attr("datatype");
			domAttr[""+sign+""] = $("input[name='"+sign+"']").attr("datatype");
			//备件表中，序列号为空，异常原因不能为空。反之亦然
			$("input[name='"+item+"']").on("blur",function(){
				if($(this).val() === ""){
					$("input[name='"+sign+"']").attr("datatype",domAttr[""+sign+""]);
				}else{
					$("input[name='"+sign+"']").removeAttr("datatype").removeClass("Validform_error").siblings(".Validform_checktip").removeClass("Validform_wrong").html("");
				}
			});
			$("input[name='"+sign+"']").on("blur",function(){
				if($(this).val() === ""){
					$("input[name='"+item+"']").attr("datatype",domAttr[""+item+""]);
				}else{
					$("input[name='"+item+"']").removeAttr("datatype").removeClass("Validform_error").siblings(".Validform_checktip").removeClass("Validform_wrong").html("");
				}
			});
		}
		bindBlurOnThisEmptyThatCannotEmpty("engItemSn","engExceptionSign");
		bindBlurOnThisEmptyThatCannotEmpty("tiIcpItemSn","tiIcpExceptionSign");
		bindBlurOnThisEmptyThatCannotEmpty("lpsItemSn","lpsExceptionSign");
		bindBlurOnThisEmptyThatCannotEmpty("enigmaItemSn","enigmaExceptionSign");
		bindBlurOnThisEmptyThatCannotEmpty("controlerItemSn","controlerExceptionSign");
		bindBlurOnThisEmptyThatCannotEmpty("smpsItemSn","smpsExcptionSign");
		bindBlurOnThisEmptyThatCannotEmpty("touchItemSn","touchExcptionSign");
	});
	</script>
	<%--<input type="hidden" name="engSecuritySn" value="${zyInspectionR.engSecuritySn}" />--%>
	<%--<input type="hidden" name="tiIcpSecuritySn" value="${zyInspectionR.tiIcpSecuritySn}" />--%>
	<%--<input type="hidden" name="lpsSecuritySn" value="${zyInspectionR.lpsSecuritySn}" />--%>
	<%--<input type="hidden" name="lps2SecuritySn" value="${zyInspectionR.lps2SecuritySn}" />--%>
	<%--<input type="hidden" name="lps3SecuritySn" value="${zyInspectionR.lps3SecuritySn}" />--%>
	<%--<input type="hidden" name="enigmaSecuritySn" value="${zyInspectionR.enigmaSecuritySn}" />--%>
	<%--<input type="hidden" name="controlerSecuritySn" value="${zyInspectionR.controlerSecuritySn}" />--%>
	<%--<input type="hidden" name="smpsSecuritySn" value="${zyInspectionR.smpsSecuritySn}" />--%>
	<%--<input type="hidden" name="touchSecuritySn" value="${zyInspectionR.touchSecuritySn}" />--%>
	<table cellpadding="0" cellspacing="0"  class="nobordertable">
		<tr class="colortitle">
			<th >备件信息记录</th>
			<th >备件号</th>
			<th colspan="3" >备件序列号</th>
			<th colspan="3" >二维码</th>	
			<th>异常说明</th>
		</tr>
		<tr>
			<td >ENG</td>
			<td ><select name="engItemId" style="width: 100%;">
					<c:forEach items="${engItemList}" var="esItem">
						<option value="${esItem.id }" <c:if test="${esItem.id eq zyInspectionR.engItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td width="25%" colspan="3" style="vertical-align: top;"><input type="text" name="engItemSn" value="${zyInspectionR.engItemSn }" style="width:97%;" datatype="/^[A-Z0-9]+$/"/></td>
			<td width="25%" colspan="3" ><input type="text" name="engSecuritySn" value="${zyInspectionR.engSecuritySn}" style="width:97%;" /></td>
			<td width="25%"><input type="text" name="engExceptionSign" value="${zyInspectionR.engExceptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>	
		<tr>
			<td>TI/ICP</td>
			<td><select name="tiIcpItemId" style="width: 100%;">
					<c:forEach items="${TIICPItemList}" var="esItem">
						<option value="${esItem.id }"<c:if test="${esItem.id eq zyInspectionR.tiIcpItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td colspan="3" style="vertical-align: top;"><input type="text" name="tiIcpItemSn" value="${zyInspectionR.tiIcpItemSn }" style="width:97%;" datatype="/^[A-Z0-9]+$/"/></td>
			<td colspan="3" ><input type="text" name="tiIcpSecuritySn" value="${zyInspectionR.tiIcpSecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="tiIcpExceptionSign" value="${zyInspectionR.tiIcpExceptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>LPS</td>
			<td><select name="lpsItemId" style="width: 100%;">
					<c:forEach items="${LPSItemList}" var="esItem">
						<option value="${esItem.id }"<c:if test="${esItem.id eq zyInspectionR.lpsItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td style="vertical-align: top;"><input type="text" name="lpsItemSn" value="${zyInspectionR.lpsItemSn }" style="width:97%;" datatype="*" /></td>
			<td style="vertical-align: top;"><input type="text" name="lps2ItemSn" value="${zyInspectionR.lps2ItemSn }" style="width:97%;" /></td>
			<td style="vertical-align: top;"><input type="text" name="lps3ItemSn" value="${zyInspectionR.lps3ItemSn }" style="width:97%;" /></td>
			<td ><input type="text" name="lpsSecuritySn" value="${zyInspectionR.lpsSecuritySn}" style="width:97%;" /></td>
			<td ><input type="text" name="lps2SecuritySn" value=">${zyInspectionR.lps2SecuritySn}" style="width:97%;" /></td>
			<td ><input type="text" name="lps3SecuritySn" value="${zyInspectionR.lps3SecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="lpsExceptionSign" value="${zyInspectionR.lpsExceptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>LDM</td>
			<td>
				<select name="ldmItemId" style="width: 100%;">
					<c:forEach items="${LDMItemList}" var="esItem">
						<option value="${esItem.id }" <c:if test="${esItem.id eq zyInspectionR.ldmItemId }">selected='selected'</c:if> >${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td style="vertical-align: top;"><input type="text" name="ldm1Sn" value="${zyInspectionR.ldm1Sn }" style="width:97%;" /></td>
			<td style="vertical-align: top;"><input type="text" name="ldm2Sn" value="${zyInspectionR.ldm2Sn }" style="width:97%;" /></td>
			<td style="vertical-align: top;"></td>
			<td><input type="text" name="ldm1SecuritySn" value="${zyInspectionR.ldm1SecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="ldm2SecuritySn" value="${zyInspectionR.ldm2SecuritySn}" style="width:97%;" /></td>
			<td></td>
			<td><input type="text" name="ldmExceptionSign" value="${zyInspectionR.ldmExceptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>Enigma</td>
			<td><select name="enigmaItemId" style="width: 100%;">
					<c:forEach items="${EnigmaItemList}" var="esItem">
						<option value="${esItem.id }"<c:if test="${esItem.id eq zyInspectionR.enigmaItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td colspan="3" style="vertical-align: top;"><input type="text" name="enigmaItemSn" value="${zyInspectionR.enigmaItemSn }" style="width:97%;" datatype="*" /></td>
			<td colspan="3" ><input type="text" name="enigmaSecuritySn" value="${zyInspectionR.enigmaSecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="enigmaExceptionSign" value="${zyInspectionR.enigmaExceptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>Controller</td>
			<td><select name="controlerItemId" style="width: 100%;">
					<c:forEach items="${ControlerItemList}" var="esItem">
						<option value="${esItem.id }"<c:if test="${esItem.id eq zyInspectionR.controlerItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td colspan="3" style="vertical-align: top;"><input type="text" name="controlerItemSn" value="${zyInspectionR.controlerItemSn }" style="width:97%;" datatype="*" /></td>
			<td colspan="3" ><input type="text" name="controlerSecuritySn" value="${zyInspectionR.controlerSecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="controlerExceptionSign" value="${zyInspectionR.controlerExceptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>SMPS</td>
			<td><select name="smpsItemId" style="width: 100%;">
					<c:forEach items="${SMPSItemList}" var="esItem">
						<option value="${esItem.id }"<c:if test="${esItem.id eq zyInspectionR.smpsItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td colspan="3" style="vertical-align: top;"><input type="text" name="smpsItemSn" value="${zyInspectionR.smpsItemSn }" style="width:97%;" datatype="*" /></td>
			<td colspan="3" ><input type="text" name="smpsSecuritySn" value="${zyInspectionR.smpsSecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="smpsExcptionSign" value="${zyInspectionR.smpsExcptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>触摸屏</td>
			<td><select name="touchItemId" style="width: 100%;">
					<c:forEach items="${touchItemList}" var="esItem">
						<option value="${esItem.id }"<c:if test="${esItem.id eq zyInspectionR.touchItemId }">selected='selected'</c:if>>${esItem.item }</option>
					</c:forEach>
				</select>
			</td>
			<td colspan="3" style="vertical-align: top;"><input type="text" name="touchItemSn" value="${zyInspectionR.touchItemSn }" style="width:97%;" datatype="*" /></td>
			<td colspan="3" ><input type="text" name="touchSecuritySn" value="${zyInspectionR.touchSecuritySn}" style="width:97%;" /></td>
			<td><input type="text" name="touchExcptionSign" value="${zyInspectionR.touchExcptionSign }" style="width:97%;" /><span class="Validform_checktip"></span></td>
		</tr>
		<tr>
			<td>培训人数</td>
			<td>
				<input type="text" name="trainingNum" datatype="num" value="${zyInspectionR.trainingNum }" nullmsg="请填写 培训人数"
					style="width:150px;" />
			</td>
			<td colspan="7">培训后评分
				<t:dictSelect field="trainingScore" type="radio" typeGroupCode="<%=StaticValue.DIC_BEFORE_MAINTAIN_STATE %>" defaultVal="${zyInspectionR.trainingScore }"></t:dictSelect>
			</td>
		</tr>
		<tr>
			<td width="18%">培训重点</td>
			<td colspan="8">
				<t:dictSelect field="trainingPoint" type="checkbox" typeGroupCode="<%=StaticValue.DIC_TRAININGPOTINT %>" defaultVal="${zyInspectionR.trainingPoint }"></t:dictSelect>
				<input type="text" name="trainingPointOther"  style="width:150px;" value="${zyInspectionR.trainingPointOther }" />
			</td>
		</tr>
		<tr>
			<td width="18%">是否有整改通知函</td>
			<td colspan="8">
				<t:dictSelect field="hadChangeNotice" type="checkbox" typeGroupCode="<%=StaticValue.DIC_TRUE_OR_FALSE %>" defaultVal="${zyInspectionR.hadChangeNotice }"></t:dictSelect>
			</td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0" class="nobordertable">
		<tr>
			<td width="18%">
				建议更换备件,	维修项目和<br/>对影厅及使用环境的综合评价
			</td>
			<td>
				<textarea rows="8" cols="100" name="comprehensiveEvaluation">${zyInspectionR.comprehensiveEvaluation }</textarea>
			</td>
		</tr>
	</table>
	<div style="text-align:center; margin:5px;">
		<a href="javascript:void(0);" class="easyui-linkbutton" id="temporarySave02">暂存</a>
		<a href="javascript:void(0);" class="easyui-linkbutton" id="save02">提交</a>
	</div>
</t:formvalid>
</body>
